<div *ngIf="hero">
  <h2>{{ hero.name }} 详情</h2>
  <button type="button" (click)="goBack()">go back</button>
  <div><span>id: </span>{{ hero.id }}</div>
  <div><span>name: </span>{{ hero.name }}</div>
  <div>
    <label for="name">Hero name: </label>
    <input id="name" [(ngModel)]="hero.name" placeholder="name" />
  </div>
</div>
